package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;  
import org.apache.ibatis.annotations.Insert;  
import org.apache.ibatis.annotations.Select;  
import org.apache.ibatis.annotations.Update; 

import cn.com.api.entity.ApiU_see_his;
import cn.com.api.entity.ApiU_user_friend;
import cn.com.api.mapper.base.U_user_friendMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiU_user_friendMapper extends U_user_friendMapperBase {

	//新增对象后返回记录ID
    public int U_user_friendInsertion(ApiU_user_friend user_friend);
    
    //获取好友数量
    public Integer getUserFriendCount(@Param("user_id") String user_id);
    
	//查看是否可加好友
	public ApiU_user_friend checkUserFriendState(@Param("user_id") String user_id, @Param("friend_id") String friend_id);
 
	//根据Map查询
	public List<ApiU_user_friend> findU_user_friendByMap(@Param("map") Map param);
	
	//获取用户好友关系记录
	public ApiU_user_friend getUserFriendRecord(@Param("map") Map param);
}


